<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPHINXsys/src/shared/geometries/geometry_level_set.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3dc1dabd28ba78e072d14d3fcfc90454.html">SPHINXsys</a></li><li class="navelem"><a class="el" href="dir_48ea983704c43b6d88c1fa3f4d09e369.html">src</a></li><li class="navelem"><a class="el" href="dir_0a0d9ef1793521534f0094f317758287.html">shared</a></li><li class="navelem"><a class="el" href="dir_fb389e6b9d9cbc3ac32f7707b63c9410.html">geometries</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">geometry_level_set.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="geometry__level__set_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;geometry.h&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_s_p_h.html">SPH</a> {</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keyword">class </span>SPHBody;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <span class="keyword">class </span>BaseLevelSet;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_complex_shape.html">   22</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_level_set_complex_shape.html">LevelSetComplexShape</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_complex_shape.html">ComplexShape</a></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    {</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <a class="code" href="class_s_p_h_1_1_level_set_complex_shape.html">LevelSetComplexShape</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* sph_body, <a class="code" href="class_s_p_h_1_1_complex_shape.html">ComplexShape</a> &amp;complex_shape, <span class="keywordtype">bool</span> isCleaned = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_level_set_complex_shape.html">LevelSetComplexShape</a>() {};</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> checkContain(Vecd&amp; input_pnt, <span class="keywordtype">bool</span> BOUNDARY_INCLUDED = <span class="keyword">true</span>) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> checkNotFar(Vecd&amp; input_pnt, Real threshold) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> checkNearSurface(Vecd&amp; input_pnt, Real threshold) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keyword">virtual</span> Real <a class="code" href="class_s_p_h_1_1_level_set_complex_shape.html#afc972a88cef63fdd74e04b678b0c5c0f">findSignedDistance</a>(Vecd&amp; input_pnt) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="keyword">virtual</span> Vecd <a class="code" href="class_s_p_h_1_1_level_set_complex_shape.html#aeae1679c2c195210d7a8117e3b98fdc4">findNormalDirection</a>(Vecd&amp; input_pnt) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <span class="keyword">virtual</span> Real computeKernelIntegral(Vecd&amp; input_pnt, Real h_ratio = 1.0);</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keyword">virtual</span> Vecd computeKernelGradientIntegral(Vecd&amp; input_pnt, Real h_ratio = 1.0);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_complex_shape.html#a3430c666f2322a9ee9d554ec061a8bee">   36</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_base_level_set.html">BaseLevelSet</a>* <a class="code" href="class_s_p_h_1_1_level_set_complex_shape.html#a3430c666f2322a9ee9d554ec061a8bee">level_set_</a>;   </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    };</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;}</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_s_p_h_1_1_level_set_complex_shape_html_aeae1679c2c195210d7a8117e3b98fdc4"><div class="ttname"><a href="class_s_p_h_1_1_level_set_complex_shape.html#aeae1679c2c195210d7a8117e3b98fdc4">SPH::LevelSetComplexShape::findNormalDirection</a></div><div class="ttdeci">virtual Vecd findNormalDirection(Vecd &amp;input_pnt) override</div><div class="ttdef"><b>Definition:</b> geometry_level_set.cpp:46</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_level_set_complex_shape_html"><div class="ttname"><a href="class_s_p_h_1_1_level_set_complex_shape.html">SPH::LevelSetComplexShape</a></div><div class="ttdoc">the final geomtrical definition of the SPHBody based on a narrow band level set function generated fr...</div><div class="ttdef"><b>Definition:</b> geometry_level_set.h:22</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_base_level_set_html"><div class="ttname"><a href="class_s_p_h_1_1_base_level_set.html">SPH::BaseLevelSet</a></div><div class="ttdoc">A abstract describes a mesh with level set data packages.</div><div class="ttdef"><b>Definition:</b> level_set.h:86</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_level_set_complex_shape_html_afc972a88cef63fdd74e04b678b0c5c0f"><div class="ttname"><a href="class_s_p_h_1_1_level_set_complex_shape.html#afc972a88cef63fdd74e04b678b0c5c0f">SPH::LevelSetComplexShape::findSignedDistance</a></div><div class="ttdeci">virtual Real findSignedDistance(Vecd &amp;input_pnt) override</div><div class="ttdef"><b>Definition:</b> geometry_level_set.cpp:41</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_level_set_complex_shape_html_a3430c666f2322a9ee9d554ec061a8bee"><div class="ttname"><a href="class_s_p_h_1_1_level_set_complex_shape.html#a3430c666f2322a9ee9d554ec061a8bee">SPH::LevelSetComplexShape::level_set_</a></div><div class="ttdeci">BaseLevelSet * level_set_</div><div class="ttdef"><b>Definition:</b> geometry_level_set.h:36</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_s_p_h_body_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body.html">SPH::SPHBody</a></div><div class="ttdoc">SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body,...</div><div class="ttdef"><b>Definition:</b> base_body.h:63</div></div>
<div class="ttc" id="anamespace_s_p_h_html"><div class="ttname"><a href="namespace_s_p_h.html">SPH</a></div><div class="ttdef"><b>Definition:</b> solid_body_supplementary.cpp:9</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_complex_shape_html"><div class="ttname"><a href="class_s_p_h_1_1_complex_shape.html">SPH::ComplexShape</a></div><div class="ttdoc">gives the final geomtrical definition of the SPHBody</div><div class="ttdef"><b>Definition:</b> geometry.h:74</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
